package com.mini.mysql.model;


import com.mini.common.EncryptField;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

@Entity
@Data
@ToString
@DynamicInsert(value = true)
@DynamicUpdate(value = true)
public class AttnStudentOrder {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String orderNo;

    private Long classId;

    @EncryptField
    private String phoneNo;

    private Long miniLessonId;

    private Long lessonId;

    private Long teacherId;

    private String teacherName;

    private Date orderPayTime;

    private Date classStartTime;

    private Byte useState;

    private Byte changeClassState;

    private Long changeClassId;

    private Byte fromClassState;

    private Long fromClassId;

    private Date createTime;

    private Date updateTime;

    private Integer syncType;

    private Integer kantUnDivide;


}
